<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@include file="/context/mytags.jsp"%>
<t:base type="jquery,easyui,tools,DatePicker"></t:base>
<div class="easyui-layout" fit="true">
  <div region="center" style="padding:0px;border:0px">
  <t:datagrid name="announcementList" checkbox="true" pagination="true" fitColumns="true" sortName="annountime" actionUrl="announcementController.do?datagrid&type=${type}" idField="id" fit="true" queryMode="group">
   <t:dgCol title="ID"  field="id"  hidden="true"  queryMode="group"  width="120"></t:dgCol>
   <t:dgCol title="公告标题"  field="annountitle" queryMode="single"  width="120"></t:dgCol>
   <t:dgCol title="单据编号"  field="pocode"  queryMode="single"  width="120"></t:dgCol>
   <t:dgCol title="用户名称"  field="username"  queryMode="group"  width="120" hidden="true"></t:dgCol>
   <t:dgCol title="交易类型"  field="trademode" query="true" queryMode="single"  dictionary="tradertype"  width="120"></t:dgCol>
   <t:dgCol title="录入时间"  field="annountime"  formatter="yyyy-MM-dd"  queryMode="group"  width="120"></t:dgCol>
   <t:dgCol title="状态"  field="zhuangt" query="true" queryMode="single"  dictionary="ANNOSTATUS"  width="120"></t:dgCol>
   <t:dgCol title="联系人"  field="lianxr"  queryMode="group"  width="120"></t:dgCol>
   <t:dgCol title="联系电话"  field="lianxdh"  queryMode="group"  width="120"></t:dgCol>

   <t:dgToolBar title="查看" icon="icon-search" url="announcementController.do?goUpdate&flags=disabled" funname="detail"></t:dgToolBar>
    <c:if test="${type=='verify'}">
     <t:dgToolBar title="录入" icon="icon-add" url="announcementController.do?goAdd" funname="add"></t:dgToolBar>

   <t:dgToolBar title="审核" icon="icon-edit" url="announcementController.do?goVerify" funname="other"></t:dgToolBar>
   </c:if>
   <t:dgToolBar title="编辑" icon="icon-edit" url="announcementController.do?goUpdate&flags=enabled" funname="update"></t:dgToolBar>
   <t:dgToolBar title="批量删除"  icon="icon-remove" url="announcementController.do?doBatchDel" funname="deleteALLSelect"></t:dgToolBar>
   <%-- <t:dgToolBar title="导出" icon="icon-putout" funname="ExportXls"></t:dgToolBar> --%>
  </t:datagrid>
  </div>
 </div>
 <script type="text/javascript">
 $(document).ready(function(){
 });



//导入
function ImportXls() {
	openuploadwin('Excel导入', 'announcementController.do?upload', "announcementList");
}

//导出
function ExportXls() {
	JeecgExcelExport("announcementController.do?exportXls","announcementList");
}

//模板下载
function ExportXlsByT() {
	JeecgExcelExport("announcementController.do?exportXlsByT","announcementList");
}

 </script>
